extends TextureButton
# 连接到 "播放/暂停" 按钮的 pressed() 信号
## (在 MusicPlayer.gd 中添加以下所有函数)
#
## 1. 连接到你的 "播放" TextureButton
#func _on_play_button_pressed():
	#if audio_player.stream == null and playlist.size() > 0:
		#play_track(0)
	#elif audio_player.is_paused():
		#audio_player.set_paused(false)
		#print("音乐继续播放")
	#elif audio_player.stream != null and not audio_player.is_playing():
		#audio_player.play()
		#print("音乐开始播放")
#
